package distribuicao;

import java.rmi.RemoteException;
import java.util.List;


public interface Repositorio 
{
	public void   armazena     (Object obj) throws RemoteException;
	public void   apaga        (Object obj, Long chave)  throws RemoteException;
	public Object recupera     (Object obj, Long chave) throws RemoteException;
	public Object recuperaCoringa     (Object obj, String coringa) throws NumberFormatException, RemoteException;
	
	public List<Object>        recuperaComCriterio(Object entidade, String campo,
			                   String criterio, String valor) throws RemoteException;
	public List<Object>        recuperaComCriterio(Object entidade, String campo, 
			                   String criterio, String valorIni, String valorFi) throws RemoteException;
    public List                recuperaTodos(String entidade) throws RemoteException;
} 
